﻿using SKIT.FlurlHttpClient.Wechat.Api.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRetail.Application.Components.WeChat.TemplateMessage.Model
{
    public class TemplateMsgInputDto
    {
        /// <summary>
        /// 微信公众号的appid
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// 接收者openid
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 模板Id
        /// </summary>
        public string TemplateId { get; set; }
        /// <summary>
        /// 模板First节点
        /// </summary>
        public string First { get; set; }
        /// <summary>
        /// 模板Remark节点
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 模板数据
        /// </summary>
        public Dictionary<string,string> DataItem { get; set; }
    }

    public class TemplateMsgByTypeInputDto
    {
        /// <summary>
        /// 消息类型(0:购物成功通知  1:关注消息通知)
        /// </summary>
        public int MessageType { get; set; }
        /// <summary>
        /// 接收者openid
        /// </summary>
        public string OpenId { get; set; }
        ///// <summary>
        ///// 模板First节点
        ///// </summary>
        //public string First { get; set; }
        ///// <summary>
        ///// 模板Remark节点
        ///// </summary>
        //public string Remark { get; set; }
        /// <summary>
        /// 模板数据
        /// </summary>
        public Dictionary<string, string> DataItem { get; set; }
    }

    public class TemplateMsgSendDto
    {
        /// <summary>
        /// 消息类型(0:购物成功通知  1:关注消息通知  2:积分兑换代金券成功通知)
        /// </summary>
        public int MessageType { get; set; }
        /// <summary>
        /// 微信公众号的appid
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// 接收者openid
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 模板Id
        /// </summary>
        public string TemplateId { get; set; }
        /// <summary>
        /// 数据项
        /// </summary>
        public Dictionary<string, CgibinMessageTemplateSendRequest.Types.DataItem> MessageItemDate { get; set; }
    }
}
